package com.ruoyi.project.qyxy.qua.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.qyxy.qua.mapper.QuaPersionConfigMapper;
import com.ruoyi.project.qyxy.qua.domain.QuaPersionConfig;
import com.ruoyi.project.qyxy.qua.service.IQuaPersionConfigService;

/**
 * 资质人员参数Service业务层处理
 * 
 * @author lcl
 * @date 2021-03-06
 */
@Service
public class QuaPersionConfigServiceImpl implements IQuaPersionConfigService 
{
    @Autowired
    private QuaPersionConfigMapper quaPersionConfigMapper;

    /**
     * 查询资质人员参数
     * 
     * @param id 资质人员参数ID
     * @return 资质人员参数
     */
    @Override
    public QuaPersionConfig selectQuaPersionConfigById(Long id)
    {
        return quaPersionConfigMapper.selectQuaPersionConfigById(id);
    }

    /**
     * 查询资质人员参数列表
     * 
     * @param quaPersionConfig 资质人员参数
     * @return 资质人员参数
     */
    @Override
    public List<QuaPersionConfig> selectQuaPersionConfigList(QuaPersionConfig quaPersionConfig)
    {
        return quaPersionConfigMapper.selectQuaPersionConfigList(quaPersionConfig);
    }

    /**
     * 新增资质人员参数
     * 
     * @param quaPersionConfig 资质人员参数
     * @return 结果
     */
    @Override
    public int insertQuaPersionConfig(QuaPersionConfig quaPersionConfig)
    {
        return quaPersionConfigMapper.insertQuaPersionConfig(quaPersionConfig);
    }

    /**
     * 修改资质人员参数
     * 
     * @param quaPersionConfig 资质人员参数
     * @return 结果
     */
    @Override
    public int updateQuaPersionConfig(QuaPersionConfig quaPersionConfig)
    {
        return quaPersionConfigMapper.updateQuaPersionConfig(quaPersionConfig);
    }

    /**
     * 批量删除资质人员参数
     * 
     * @param ids 需要删除的资质人员参数ID
     * @return 结果
     */
    @Override
    public int deleteQuaPersionConfigByIds(Long[] ids)
    {
        return quaPersionConfigMapper.deleteQuaPersionConfigByIds(ids);
    }

    /**
     * 删除资质人员参数信息
     * 
     * @param id 资质人员参数ID
     * @return 结果
     */
    @Override
    public int deleteQuaPersionConfigById(Long id)
    {
        return quaPersionConfigMapper.deleteQuaPersionConfigById(id);
    }
}
